<%@page import="dao.MemberDao"%>
<%@page import="vo.MemberVo"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%


	
	String id = request.getParameter("id");
	String answer = request.getParameter("answer");
	
	
	MemberVo mvo = MemberDao.getDao().informMemberId(id);
	String answer1=mvo.getM_pwd_answer();
	String pwd=null;
	
	if(answer.equals(answer1)){
		pwd = mvo.getM_pwd();
		out.print("[{'result':    '  "+   pwd   +"  '    }]");
	}
	
	
	else {
		out.print("[{'result':'fail'}]");
		
	}
		
	
	
%>